package com.wgchao.authodemo.domian.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-12-10 
 * @用途 
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="department" )
public class DepartmentDO  implements Serializable {

	private static final long serialVersionUID =  2273044851754348316L;

	/**
	 * 组编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "group_id" )
	private Long groupId;

	/**
	 * 组名称
	 */
   	@Column(name = "group_name" )
	private String groupName;

	/**
	 * 机构编号
	 */
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 简介
	 */
   	@Column(name = "description" )
	private String description;

	/**
	 * 父组编号
	 */
   	@Column(name = "par_group_id" )
	private Long parGroupId;

   	@Column(name = "level" )
	private String level;

}
